﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NerdOnRails.DynamicProxy.Tests.Mocks
{
	 public class MockedInvocationHandler : IInvocation
	 {
		  public String Content
		  {
				get;
				set;
		  }

		  public void BeforeMethodInvocation(String methodName, Type invokedType, params object[] args)
		  {
				this.Content = args.First().ToString();
		  }

		  public void AfterMethodInvocation(String methodName, Type invokedType, object result)
		  {
				this.Content = result.ToString();
		  }
	 }
}
